<%--
  Created by IntelliJ IDEA.
  User: 怪物大师
  Date: 2024/4/28
  Time: 14:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript">
        function goturegister() {
            window.location.href="${pageContext.request.contextPath}/login.jsp";
        }
    </script>
</head>
<body>
<form action="${pageContext.request.contextPath}/AddUserServlet">
    要注册的用户名<input type="text" name="username"><br>
    要注册的密码&nbsp;&nbsp;<input type="password" name="password"><br>
    <input type="submit" value="注册"> <button type="button" onclick="goturegister()" >登录页面</button>
</form>
</body>
</html>
